package com.bruan.create_thread;

//1. 继承接口
public class MyRunnable implements Runnable{
    //2.重写run方法
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("子线程输出==> "+i);
        }
    }
}
